package com.tsd.jxc.fin.entity;

import com.tsd.core.datasource.DataSourceContextHolder;
import com.tsd.jxc.fin.FinanceConstants;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.List;

/**
 * 财务-资金管理扩展
 *
 * @author Hillpool
 * @date 2023/02/09 18:00:21
 */
@ApiModel(description = "财务-资金管理扩展")
public class JxcFinanceFundDetailExt extends JxcFinanceFundDetail implements Serializable {

    private String related_party_name;

    private String related_party_code;

    private String related_party_short_name;

    private String related_party_display;

    private String fund_account_name;

    private String group_name;

    private String creator_person_name;

    private String auditor_person_name;

    private List<Long> id_list;

    private List<String> sid_list;

    public String getRelated_party_name() {
        return related_party_name;
    }

    public void setRelated_party_name(String related_party_name) {
        this.related_party_name = related_party_name;
    }

    public String getRelated_party_code() {
        return related_party_code;
    }

    public void setRelated_party_code(String related_party_code) {
        this.related_party_code = related_party_code;
    }

    public String getRelated_party_short_name() {
        return related_party_short_name;
    }

    public void setRelated_party_short_name(String related_party_short_name) {
        this.related_party_short_name = related_party_short_name;
    }

    public String getRelated_party_display() {
        return related_party_display;
    }

    public void setRelated_party_display(String related_party_display) {
        this.related_party_display = related_party_display;
    }

    public String getFund_account_name() {
        return fund_account_name;
    }

    public void setFund_account_name(String fund_account_name) {
        this.fund_account_name = fund_account_name;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    public String getCreator_person_name() {
        return creator_person_name;
    }

    public void setCreator_person_name(String creator_person_name) {
        this.creator_person_name = creator_person_name;
    }

    public String getAuditor_person_name() {
        return auditor_person_name;
    }

    public void setAuditor_person_name(String auditor_person_name) {
        this.auditor_person_name = auditor_person_name;
    }

    public List<Long> getId_list() {
        return id_list;
    }

    public void setId_list(List<Long> id_list) {
        this.id_list = id_list;
    }

    public List<String> getSid_list() {
        return sid_list;
    }

    public void setSid_list(List<String> sid_list) {
        this.sid_list = sid_list;
    }

    public String getType_name() {
        return FinanceConstants.TYPE_CASH_IN.equalsIgnoreCase(this.getType()) ? "收款" : "付款";
    }

    public String getBill_type_name() {
        return FinanceConstants.getAccountTypeName(DataSourceContextHolder.getDataSourceType(), this.getBill_type());
    }
}